Towards Valid XML Applications
نویسندگان
چکیده
Many WWW applications generate HTML or XML documents dynamically. Current tools, however, like languages using DOM or JAVA Server Pages do not allow to check the validity of the generated documents statically. Instead, validity has to be “checked” dynamically by appropriate test runs. This paper addresses this problem by introducing a new distinct class for each element type of a DTD. Each class extends the Element-class of the Document Object Model (DOM). The resulting object model is called Validating DOM (V-DOM). Parametric XML (P-XML) is an extension of XML allowing to insert values of the newly defined classes in places where the corresponding element types are allowed according to the underlying DTD. Like V-DOM, P-XML guarantees the validity of all XML documents generated by using P-XML. V-DOM and P-XML are illustrated by several examples.
منابع مشابه
Prototyping a Vibrato-Aware Query-By-Humming (QBH) Music Information Retrieval System for Mobile Communication Devices: Case of Chromatic Harmonica
Background and Aim: The current research aims at prototyping query-by-humming music information retrieval systems for smart phones. Methods: This multi-method research follows simulation technique from mixed models of the operations research methodology, and the documentary research method, simultaneously. Two chromatic harmonica albums comprised the research population. To achieve the purpose ...
متن کاملTowards XML Oriented Internet Management
Internet Management is based on IETF specifications that have been developed and used during the past 14 years: There are multiple versions and options of the management protocol (SNMP), two versions of the language for specifying the structure of management information (SMI), and more than 160 Standard MIB modules. This altogether represents the most widely deployed management technology these...
متن کاملV-DOM and P-XML - Towards a Valid Programming of XML-Based Applications
Many WWW applications generate HTML or XML documents dynamically. Current tools, however, like languages using DOM or Java Server Pages do not allow to check the validity of the generated documents statically. Instead, validity has to be “checked” dynamically by appropriate test runs. This paper addresses this problem by introducing a new distinct class for each element type of a DTD. Each clas...
متن کاملTowards the Preservation of Keys in XML Data Transformation for Integration
Transformation of a source schema with its conforming data to a target schema with its conforming data is an important activity in XML as two schemas in XML can represent same real world information. Specifically in XML data integration, transformation of a source to a target is regarded as an important task. An XML source schema can often be defined with XML key which is an important integrity...
متن کاملXML Parsers
XML parsers are typically used to transform raw XML data to a form that other applications can utilize. The parser may ensure that the document is well-formed1 and valid 2. It is a rather straightforward procedure to generate an XML document from an application. However, the opposite operation, retrieving data from XML within a program is a complicated procedure. In addition, being a rather new...
متن کامل